import { PageModalService } from 'src/app/shared/service/page-modal-service';
import { Component, OnInit } from '@angular/core';
import { Platform } from "@ionic/angular";
import { ModalController, NavParams } from '@ionic/angular';

@Component({
  selector: 'app-open-app',
  templateUrl: './open-app.component.html',
  styleUrls: ['./open-app.component.scss'],
})
export class OpenAppComponent implements OnInit {

  constructor(
    private modalController: ModalController,
    private platform: Platform,
    private pageModalService: PageModalService
  ) { }

  appTypeCustom: any;
  ngOnInit() {

    const bodyStyles = window.getComputedStyle(document.body);
    this.appTypeCustom = bodyStyles.getPropertyValue('--appTypeCustom').trim().replace('"', '').replace('"', '');
  }


  dismiss() {
    this.modalController.dismiss({});
  }


  openApp() {
    this.pageModalService.openApp();
  }

}
